

export namespace consts {

    export const exccelNumberFormat = '#,##0.00;-#,##0.00;"";@'; // 定义会计专用格式字符串,零值不显示 不行
    export const excelPercentFormat = '#,##0.00%;-#,##0.00%;"";@'; // 定义百分数表格式
    //默认页大小
    export const defaultSampePageSize = 50;
    export const numberFormat = '#,##0.00';
    export const percentFormat = { type: 'percent', precision: 2 };
    export const percentFormat4Bit = { type: 'percent', precision: 4 };
    export const numberFormat0 = '0.00';
    export const numberFormat2Bit = '#,##0.00';
    export const numberFormat4Bit = '#,##0.0000';
    export const numberFormat6Bit = '#,##0.000000';
    export const intgerFormat0 = '#,##0';
    export const unitGeFormat = '#0 个'
    export const orderIndexFieldName = 'orderIndex';
    export const excelRowIndexFieldName = 'excelRowIndex';
    export const pixelsPerCharacter = 7.5;
    export const autoIncText = '自动编号';
    export const betweenText = '区间';
    export const equalText = '等于';
    export const includeText = '包含';
    export const decludeText = '不包含';
    export const startIsText = '开头是';
    export const endIsText = '结尾是';
    export const leftInclude = '左包含';
    export const rightInclude = '右包含';
    export const empty = '';

    export const curNoValue = '(暂无)'
    export const noValue = '(无)'

    export const notQueryCondition = '<还未设置高级查询条件>'
    export const emptyText = '<空>'


    export const multiSeparator = '多个用逗号分隔';
    export const textOperatorArray = [empty, equalText, includeText, decludeText, startIsText, endIsText]

    export const asc = 'asc'
    export const desc = 'desc'
    export const sampleSortList = [
        { value: asc, text: '升序' },
        { value: desc, text: '降序' },
    ];

    //抽取方式(系统)
    export const extractMethodArray = [
        { value: asc, text: '自上而下的顺序抽取' },
        { value: desc, text: '自下而上的顺序抽取' }
    ]


    export const amountBigToSmall = 'amountBigToSmall'
    export const amountSmallToBig = 'amountSmallToBig'
    export const amountRandom = 'amountRandom'

    //抽方式(分层)
    export const amountExtractMethodArray = [
        { value: amountBigToSmall, text: '金额由大到小的顺序抽取' },
        { value: amountSmallToBig, text: '金额由小到大的顺序抽取' },
        { value: amountRandom, text: '随机抽取' }
    ]

    export const jzpzStr = '记'

    export const maxSampleCount = 50000;//最大记录5万

    /**
     * 风险级别
     */
    export const riskLevelArray = [
        { value: 'highest', text: '最高', },
        { value: 'high', text: '高', },
        { value: 'middle', text: '中', },
        { value: 'low', text: '低', }
    ]

    export const assertions = [
        //  { value: "", text: "" },
        { value: "existence_occurrence", text: "存在/发生" },/* 
        { value: "occurrence", text: "发生" }, */
        { value: "completeness", text: "完整性" },
        { value: "rightsAndObligations", text: "权利和义务" },
        { value: "valuationAndAllocation", text: "计价和分摊" },
        { value: "classification", text: "分类" },
        { value: "presentation", text: "列报" },
        //  { value: "accuracy", text: "准确性" },
        //  { value: "cutoff", text: "截止" },

        //存在/发生、完整性、权利和义务、计价和分摊、分类、列报
        // { value: "completenessSpecific", text: "完整性（特定账户）" }
    ];

    export const NA = 'N/A'

    export const randomSeed = 10000;//1万
    export const selectNullOrderFields = '(select null)';
    export const specialSampleType = '特殊样本'
    export const amountMajorSampleType = '金额重大'
    export const manualAddSampleType = '手工添加'
    export const normalSampleType = '普通样本'

    export const maxExportCount = 50 * 10000;//50万


    export const localBlobFileTag = 'localBlobFile';

    export const sampledAllSampleSizeField = 'sampleStepInfo.sampleParameterValues.sampledAllSampleSize';

    export const yes = '是'
    export const no = '否'
    export const AcYesNoOnlyListOfEmpty = [
        { id: yes, text: yes },
        { id: no, text: no },
        { id: '', text: '(空)' }
    ]

    export const AcYesNoOnlyList = [
        { id: yes, text: yes },
        { id: no, text: no },
    ]
    export const isNumFieldsList = [
        { id: 1, text: '数字字段' },
        { id: 0, text: '文本字段' },
    ]
    export const displayFormatList = [
        { id: '', text: '文本格式', sqlType: 'nvarchar({length})' },
        { id: consts.numberFormat2Bit, text: '两位小数', sqlType: 'numeric(18,2)' },
        { id: consts.numberFormat4Bit, text: '四位小数', sqlType: 'numeric(18,4)' },
        { id: consts.numberFormat6Bit, text: '六位小数', sqlType: 'numeric(18,6)' },
        { id: consts.intgerFormat0, text: '整数', sqlType: 'int' },
    ]

    export const xh = '序号';

    export const JFJE_DFJE_Field = 'ABS(JFJE)+ABS(DFJE)'
    export const JFJE_DFJE_ABS = `[${JFJE_DFJE_Field}]`;
    export const JFJE_DFJE_Field_SEP = ` [JFJE],[DFJE]`;
    export const JFJE_DFJE_Array = ['JFJE', 'DFJE']
    export const JF_DF_Text = '借或贷'
    export const JF_Text = '借方'
    export const DF_Text = '贷方'
    export const J_Text = '借'
    export const D_Text = '贷'

    export const JFJE_DFJE_Title = '借方或贷方金额';

    export const sampleMethodTabsTitle: any = {
        tabNonStatSample: '非统计抽样',
        tabStatSample: '统计抽样',
    };
    export const defaultNullSort = '(select null)'
}